-- GENERATED SPELL FOR [Thorn Flayer] --


function spell0_19920(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(35507,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19920', 4000, 1)
end

function Sorts_19920(pUnit, Event)
local choix_sorts_19920 = math.random(0, 0)
if choix_sorts_19920 == 0 then
pUnit:RegisterEvent('spell0_19920', 1, 1)
end
end

function mob19920_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19920', math.random(1500, 3000), 1)
end

function mob19920_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19920_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19920_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19920, 1, 'mob19920_Action')
RegisterUnitEvent(19920, 2, 'mob19920_Leave')
RegisterUnitEvent(19920, 3, 'mob19920_Kill')
RegisterUnitEvent(19920, 4, 'mob19920_Die')
